<?php $this->beginContent('//layouts/main'); ?>
<div class="main">
	<div id="content">
		<?php echo $content; ?>
	</div><!-- content -->
<?php if (!Yii::app()->user->isGuest) {?>
	<div id="sidebar">
		<?php
		$this->beginWidget('zii.widgets.CPortlet', array(
			'title'=>'Operations',
		));?>
		<div class='operations'>
			<ul>
				<li>
				<p><?php echo CHtml::link("List User",array('User/index'));?></p>
				</li>
				<li>
				<p><?php echo CHtml::link("List Bill",array('Bill/index'));?></p>
				</li>
			</ul>
		</div>
		<?php $this->endWidget();?>
	</div> <!-- sidebar -->
<?php }?>
	<div class="clearer"></div>
</div>
<?php $this->endContent(); ?>